// 事件监听机制
let EventEmitter = require('events').EventEmitter
let emitter = new EventEmitter()
emitter.once('fun1', info => {
    console.log("zhu ce shijian")
    console.log(info)
})
setInterval(() => {
    emitter.emit('fun1', { a: 1, b: 2 })
}, 30)
 